<template>
  <div class="box">
      <button class="updateNode" @click="loadAll">查看更多 <span v-show="load" class="el-icon-loading"></span></button>
  </div>
</template>

<script>
export default {
    props:["load"],
    methods:{
        loadAll(){
            this.load=true
            this.$emit("load")
        }
    }

}
</script>

<style scoped lang="less">

 .updateNode{
        background: #f9d268;
        border: none;
        width: 100px;
        height: 30px;
        border-radius: 10px;
        text-align: center;
        line-height: 30px;
        outline: none;
        margin: 10px auto;
        display: block;
        cursor: pointer;
    }

</style>